package org.example;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        BookShelf bookShelf=new BookShelf();
        bookShelf.appendBook(new Book("C++编程"));
        bookShelf.appendBook(new Book("Java基础"));
        bookShelf.appendBook(new Book("JavaScript语言"));
        Interator interator = bookShelf.interator();
        while (interator.hasnext()){
            Book next = (Book) interator.next();
            System.out.println(next);
        }
    }
}